var relations = ['', '爸爸', '妈妈', '爷爷', '奶奶', '外公', '外婆', '其他']
var relationShip = ['', '父子', '母子', '祖孙', '祖孙', '祖孙', '祖孙', '其他']
function handleRelation(obj, key = 'relationship') {
    if (typeof obj === 'object' && obj[key]) {
        obj['relation'] = relationShip[obj[key]]
    }
    return obj
}
module.exports = {
    handleRelation,
    relations
}